package com.com.appletest;

public interface CompareAble {
    //定义默认比较方法,挑选打印较大苹果
    default void compare(Apple apple, Apple apple2){
        System.out.println("默认挑大的");
        if (apple.getSize() > apple2.getSize()){
            System.out.println(apple);
        }
        System.out.println(apple2);
    }
}
